﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KLLSAPEncrypt
{
    class Program
    {
        static void Main(string[] args)
        {
            //Dim decodeuser As Byte() = Convert.FromBase64String(System.Configuration.ConfigurationManager.AppSettings("SAP_USER"))
            //Dim user As String = System.Text.Encoding.UTF8.GetString(decodeuser)

            //Dim decodepwd As Byte() = Convert.FromBase64String(System.Configuration.ConfigurationManager.AppSettings("SAP_PASSWD"))
            //Dim pwd As String = System.Text.Encoding.UTF8.GetString(decodepwd)

            // Encrypt
            //byte[] srcBytes = System.Text.Encoding.UTF8.GetBytes("@WSXCDE#");
            //string hash = Convert.ToBase64String(srcBytes);
            //Console.WriteLine(hash);

            // Decrypt
            byte[] codeBytes = Convert.FromBase64String("S0xERVYwMg==");
            string src = System.Text.Encoding.UTF8.GetString(codeBytes);

            Console.WriteLine(src);
            Console.ReadLine();
        }
    }
}
